package com.woniu.clientServer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName transportation_method
 */
@TableName(value ="transportation_method")
public class TransportationMethod implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String transportationMethod;

    /**
     * 
     */
    private String transportationPrice;

    /**
     * 
     */
    private String aging;

    /**
     * 
     */
    private String transportationCode;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createBy;

    /**
     * 
     */
    private String code;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getTransportationMethod() {
        return transportationMethod;
    }

    /**
     * 
     */
    public void setTransportationMethod(String transportationMethod) {
        this.transportationMethod = transportationMethod;
    }

    /**
     * 
     */
    public String getTransportationPrice() {
        return transportationPrice;
    }

    /**
     * 
     */
    public void setTransportationPrice(String transportationPrice) {
        this.transportationPrice = transportationPrice;
    }

    /**
     * 
     */
    public String getAging() {
        return aging;
    }

    /**
     * 
     */
    public void setAging(String aging) {
        this.aging = aging;
    }

    /**
     * 
     */
    public String getTransportationCode() {
        return transportationCode;
    }

    /**
     * 
     */
    public void setTransportationCode(String transportationCode) {
        this.transportationCode = transportationCode;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 
     */
    public String getCode() {
        return code;
    }

    /**
     * 
     */
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TransportationMethod other = (TransportationMethod) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTransportationMethod() == null ? other.getTransportationMethod() == null : this.getTransportationMethod().equals(other.getTransportationMethod()))
            && (this.getTransportationPrice() == null ? other.getTransportationPrice() == null : this.getTransportationPrice().equals(other.getTransportationPrice()))
            && (this.getAging() == null ? other.getAging() == null : this.getAging().equals(other.getAging()))
            && (this.getTransportationCode() == null ? other.getTransportationCode() == null : this.getTransportationCode().equals(other.getTransportationCode()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTransportationMethod() == null) ? 0 : getTransportationMethod().hashCode());
        result = prime * result + ((getTransportationPrice() == null) ? 0 : getTransportationPrice().hashCode());
        result = prime * result + ((getAging() == null) ? 0 : getAging().hashCode());
        result = prime * result + ((getTransportationCode() == null) ? 0 : getTransportationCode().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", transportationMethod=").append(transportationMethod);
        sb.append(", transportationPrice=").append(transportationPrice);
        sb.append(", aging=").append(aging);
        sb.append(", transportationCode=").append(transportationCode);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", code=").append(code);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}